package com.cloudkinto.dao;

import com.cloudkinto.entity.CostRecordDo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloudkinto.extentity.cost.MemberPageFee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 * @author ding
 * @since 2020-06-10
 */
@Mapper
public interface CostRecordDao extends BaseMapper<CostRecordDo> {
    Double getCostAmount(Long companyId, Date startDate, Date endDate);

    List<CostRecordDo> getCostList(Long companyId, Date startDate, Date endDate);

    Double getAvgAmountByCompanyId(@Param("companyId")Long companyId,@Param("startDate") Date startDate);

    MemberPageFee getFee(@Param("map")Map<String, String> map);
}
